home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Cafe 3
/
Visual Cafe 3.ISO
/
Vcafe
/
Main.bin
/
WildCardFileFilenameFilter.java
< prev
next >
Wrap
Text File
|
1998-09-08
|
914b
|
48 lines
package com.symantec.itools.io;
import java.io.File;
import java.io.FilenameFilter;
/**
* @author Symantec Internet Tools Division
* @version 1.0
* @since VCafe 3.0
*/
public class WildCardFileFilenameFilter
extends WildCardFilenameFilter
implements FileFilenameFilter
{
public WildCardFileFilenameFilter(String pattern)
{
super(pattern);
}
public WildCardFileFilenameFilter(String aPattern, boolean caseSensitiveFlag)
{
super(aPattern, caseSensitiveFlag);
}
/**
* @param dir TODO
* @param s TODO
* @since VCafe 3.0
*/
public boolean accept(File dir, String s)
{
File file;
// FIX!!!!
file = new File(dir.getAbsolutePath() + s);
if(file.isFile())
{
return (matchFilename(s));
}
return (false);
}
}